package cn.sciento.swagger.notify;

import java.util.Objects;

public class NotifyTemplateScanData {
    private String businessType;

    private String code;

    private String name;

    private String title;

    private String content;

    private String type;

    public NotifyTemplateScanData() {
    }

    public NotifyTemplateScanData(String businessType, String code, String name, String title, String content, String type) {
        this.businessType = businessType;
        this.code = code;
        this.name = name;
        this.title = title;
        this.content = content;
        this.type = type;
    }

    public String getBusinessType() {
        return this.businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String toString() {
        return "NotifyTemplateScanData{businessType='" + this.businessType + '\'' + ", code='" + this.code + '\'' + ", name='" + this.name + '\'' + ", title='" + this.title + '\'' + ", content='" + this.content + '\'' + ", type='" + this.type + '\'' + '}';
    }

    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;
        NotifyTemplateScanData that = (NotifyTemplateScanData) o;
        return (Objects.equals(getCode(), that.getCode()) &&
                Objects.equals(getType(), that.getType()));
    }

    public int hashCode() {
        return Objects.hash(new Object[]{getCode(), getType()});
    }
}
